﻿@{
    Lang lang = ViewBag.Lang;
   DataHelper.New[] LatestPinNews = ViewBag.LatestPinNews;
   DataHelper.SEO seo = ViewBag.SEO;
}
<div id="feeds" class="left">
            <h2 style="color: White; text-transform: uppercase">
                @lang.WELCOMETOOURSITE</h2>
            @{
                if (LatestPinNews != null)
                {
                    foreach (var n in LatestPinNews)
                    {
                <text>
                <div class="pined left">
                    <div class="pin-title">
                        @if (n.Title.Length > 25)
                        {
                            <text><span title="@n.Title">@n.Title.Substring(0, 25)...</span></text>
                        }
                        else
                        {
                            <text>@n.Title</text>
                        }
                    </div>
                    <div class="pin-img">
                        <img src="@(n.Image)" />
                    </div>
                    <div class="pin-description">
                        @Html.Raw(n.Description)</div>
                    <a href="@seo.Domain/news/detail/@MDF.Utilites.Helper.StringHelper.ToNonUnicodeAndLower(n.Title).Replace(" ", "-")-@n.ID">
                        <button>
                            @lang.READMORE</button>
                    </a>
                </div>
                </text>
                    }
                }
            }
        </div>